package com.zzw.springboot.controller;

import com.zzw.springboot.bean.SysMenu;
import com.zzw.springboot.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 赵志伟
 * @version 1.0
 */
@SuppressWarnings({"all"})
@RestController
public class DruidSqlController {
    @Autowired
    private SysMenuService sysMenuService;

    @RequestMapping("/druidSql")
    public List<SysMenu> druidSql(){
        List<SysMenu> sysMenuList = sysMenuService.list();
        return sysMenuList;
    }
}
